<template>
    <div>
        <div class="inptbox">
            <div>
            <div class="titleTop">{{title}}</div>
                 <div>账号：<input type="text"></div>  
                 <div>密码：<input type="password"></div> 
                <button @click="btn">立即登录</button>
            </div>
        </div>
    </div>
</template>

<script>
// export default将里面参数和方法暴露
    export default {
        // 用vdata就能生产出下列data函数
        data() {
            return {
                title: "欢迎登录我们官方首页",
            }
        },      
        methods: {
            btn(){
                console.log('111');
            }
        }
    }
</script>

<style lang="scss" scoped>
.inptbox{
    >div{
    width: 600px;
    height: 400px;
    padding: 20px;
    box-shadow: rgb(153, 153, 153) 2px 2px 10px 1px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    >.titleTop{
        font-size: 35px;
        font-weight: bold;
        position: relative;
        transform:translate(0%,-80%)
    }
    >div{
        margin: 10px;
        font-weight: bold;
        >input{
            cursor: pointer;
            border: 0;
            outline: none;
            border: 1px solid gray;
            border-radius: 15px;
            padding: 8px;
            
        }
    }
    >button{
        margin-top: 50px;
        font-size: 20px;
        background-color: rgb(34, 227, 76);
        border: 0;
        color: #fff;
        padding: 10px;
        border-radius: 10px;
    }
    }
}
</style>